package com.atguigu.gmall.order.service;

import com.atguigu.gmall.model.order.OrderInfo;

import java.util.List;
import java.util.Map;

/**
 * @Auther 赵乾坤
 * @Date 2021-01-06 20:29
 */
public interface OrderInfoService {
    Long submitOrder(OrderInfo orderInfo);

    Boolean hasStock(Long skuId, Integer skuNum);

    void cancelOrder(Long orderId);

    //获取订单
    public OrderInfo getOrderInfo(Long orderId);

    public Map initWareOrder(Long orderId);

    public Map initWareOrder(OrderInfo orderInfo);

    List<OrderInfo> orderSplit(Long orderId, String wareSkuMap);

}
